#pragma once

#include <QDialog>
#include "ui_SettingWindow.h"
#include <setting.pb.h>
#include <common_header.h>

class SettingWindow : public QDialog
{
	Q_OBJECT

public:
	SettingWindow(primary::Setting& st);
	~SettingWindow();
private slots:
//private:
	void title_changed_slot(const QString& str);
	void icon_btn_clicked_slot(bool checked);
	void font_btn_clicked_slot(bool checked);
	void apply_clicked_slot(bool checked);
	void ok_clicked_slot(bool checked);
	void cancel_clicked_slot(bool checked);
private:
	Ui::SettingWindow ui;
	primary::Setting& setting;
	u32 setting_mask{};
};
